/*
@(#)WorkUser   2023-04-17
 
Copyright (c) 2011-2023 杭州湖畔网络技术有限公司 
保留所有权利 
本软件为杭州湖畔网络技术有限公司所有及包含机密信息，须遵守其相关许可证条款进行使用。
Copyright (c) 2011-2023 HUPUN Network Technology CO.,LTD.
All rights reserved.
This software is the confidential and proprietary information of HUPUN
Network Technology CO.,LTD("Confidential Information").  You shall not
disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement you entered into with HUPUN.
Website：http://www.hupun.com
*/
package org.obp.upms.model;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import org.obp.data.entity.BaseDO;

/**
 * @author: Jackey 2023/10/23
 */
@Data
@TableName("work_menu")
public class WorkMenuDO extends BaseDO {

    public static final String DEFAULT_PARENT_ID = "0";

    private static final long serialVersionUID = -5127559716123593821L;

    /**
     * 菜单名
     */
    @ApiModelProperty("菜单名")
    private String menuName;
    /**
     * 菜单类型
     *
     * @see MenuTypeEnum
     */
    @ApiModelProperty("菜单类型")
    private Integer menuType;
    /**
     * 路由地址
     */
    @ApiModelProperty("路由地址")
    private String routerPath;
    /**
     * 父菜单ID
     */
    @ApiModelProperty("父菜单ID")
    private String parentId;
    /**
     * 排序数字
     */
    @ApiModelProperty("排序数字")
    private Integer sortDesc;

    @Getter
    @AllArgsConstructor
    public enum MenuTypeEnum {

        MENU(0, "菜单"),
        BUTTON(1, "按钮");

        public final int type;
        public final String desc;
    }

}